package com.service;

import com.dao.MenuDao;
import com.entity.MenuEntity;
import top.appx.easysql.Restrain;
import top.appx.espring.annotation.Autowired;
import top.appx.espring.annotation.Source;

import java.util.List;


@Source
public class MenuService {
    @Autowired
    private MenuDao menuDao;


    public List<MenuEntity> myMenuTree(){
       return menuDao.query(Restrain.add(" status='enable' "));
    }


}
